package com.xuetang9.t9.hotel.services;



import com.xuetang9.t9.hotel.beans.Reservation;
import com.xuetang9.t9.hotel.mapper.condition.impl.ReservationCondition;
import com.xuetang9.t9.hotel.utils.PageBean;
import com.xuetang9.t9.hotel.utils.ResponseResult;

import java.util.List;
import java.util.Map;

/**
 * 预订
 * @author pang
 */
public interface IReservationService {
    /**
     * 新增预订
     * @param reservation
     * @return
     */
    boolean save(Reservation reservation);

    /**
     * 删除预订信息
     * @param ReservationId
     * @return
     */
    boolean remove(Long ReservationId);

    /**
     * 修改预订信息
     * @param reservation
     * @return
     */
    boolean alter(Reservation reservation);

    /**
     * 限制查询
     * @param reservationCondition
     * @return
     */
    PageBean findByAll(ReservationCondition reservationCondition);

    /**
     * 限制查询总数
     * @param reservationCondition
     * @return
     */
    Long queryCount(ReservationCondition reservationCondition);

    /**
     * 总页数
     * @param pageSize
     * @return
     */
    Integer queryCount(int pageSize);

}
